<?php
require './CodeReuse/CodeReuse.php';
$k=& D('category');
$k->add(array(
    'pid'=>0,
    'cate_name'=>'测试',
    'img'=>serialize('upload/photos/test.jpg'),
    'add_time'=>time(),
));